<template>
  <div class="recommend">
    <div v-for="item in recommend">
      <a :href="item.link">
        <img :src="item.image" alt="" />
        <p>{{ item.title }}</p>
      </a>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    recommend: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style scoped>
.recommend {
  display: flex;
  padding: 10px 0 10px;
  text-align: center;
  border-bottom: 10px solid rgb(233, 230, 233);
}

.recommend div {
  flex: 1;
  font-size: 14px;
}

.recommend img {
  width: 80px;
}
</style>